﻿<Window x:Class="Power.ListTemp"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ListTemp" Height="356" Width="838">
    <Grid>
        <DockPanel>

            <Menu DockPanel.Dock="Top" Height="23">
                <MenuItem Header="查看" Click="MenuItem_Click">
                </MenuItem>

                <MenuItem Header="定位" Click="MenuItem_Click_2">
                </MenuItem>

                <MenuItem Header="图表" Click="MenuItem_Click_3">
                </MenuItem>
                <MenuItem Header="获取当前温度" Click="MenuItem_Click_1">
                </MenuItem>
            </Menu>
                <DataGrid DockPanel.Dock="Top" IsReadOnly="True" AutoGenerateColumns="False" Name="dg1">

                <DataGrid.Columns>
                    <DataGridTextColumn Header="设备号" Width="100" Binding="{Binding Device}"></DataGridTextColumn>

                    <DataGridTextColumn Header="入水温度" Width="120" Binding="{Binding TempI}" ></DataGridTextColumn>
                    <DataGridTextColumn Header="出水温度" Width="100" Binding="{Binding TempO}"></DataGridTextColumn>
                    <!--<DataGridTextColumn Header="温差" Width="120" Binding="{Binding Temp}" ></DataGridTextColumn>-->
                    <DataGridTextColumn Header="经度" Width="120" Binding="{Binding GPSW}" ></DataGridTextColumn>
                    <DataGridTextColumn Header="纬度" Width="120" Binding="{Binding GPSL}" ></DataGridTextColumn>
                    <DataGridTextColumn Header="时间" Width="120" Binding="{Binding Dtime}" ></DataGridTextColumn>

                </DataGrid.Columns>

            </DataGrid>
        </DockPanel>
    </Grid>
</Window>